cc.Class({
	extends: cc.Component,
    properties: {
        gameoverLabel :{
            default: null,
            type: cc.Node
        }
    },
    onLoad: function () {
        this.node.on('mousedown', this.startPlay, this);
        this.node.on('touchstart', this.startPlay, this);

        if (typeof(wx) == "undefined") { 
            Global.wxEnvironment = false;
        } else {
            Global.wxEnvironment = true;
        }
    },
    startPlay: function () {

        Global.player.cocosLoad();
        Global.game.cocosLoad();
    
        this.node.active = false;
        this.gameoverLabel.active = false;
    }

})


